﻿using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Media;

namespace Groovy_IM.ViewModels.IMPage
{
    public class IMMessageViewModel : INotifyPropertyChanged
    {
        public IMMessageViewModel()
        {
            this.Items = new ObservableCollection<MessageViewModel>();
        }

        public ObservableCollection<MessageViewModel> Items { get; private set; }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
